<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * form.php
 * @author ranuandra
 *
 * 7 Mei 2012 16:07:45
 *
 * 
 */
$thn = date("Y");
$thnlalu = $thn - 50;
for($k = $thn; $k >= $thnlalu; $k--)
{
	$thnlist[$k] = $k;
}
?>
<script type="text/javascript">
$(document).ready(function() {
	$('.organisasi').hide();
	$('.flag').live('change', function(){
		var lvl = $(this).val();
		if(lvl != "")
		{
			if(lvl == 1)
			{
				$('.organisasi').show();
			}
			else
			{
				$('.organisasi').hide();
			}
		}
	});
	
});
</script>
	<div class="row">
    	<div class="span8">
               	<?php echo Form::open(URL::base().'organisasi/save', array('class' => 'form-horizontal'));?>
                 	<fieldset class="level">
                		<legend>Organisasi</legend>
                         <div class="control-group">
                        	<label class="control-label" for="Bidang">Organisasi</label>
                        	<div class="controls">
                        		<label class="radio">
                        			<input type="radio" name="flag_organisasi" value="1" class="flag" />Ya
                        		</label>
                        		<label class="radio">
                        			<input type="radio" name="flag_organisasi"  value="0" class="flag" />Tidak
                        		</label>
                        	</div>
                        </div>
                	</fieldset>
                    <fieldset class="organisasi">
						<legend>Pengalaman Organisasi</legend>
                        <div class="control-group">
                        	<label class="control-label" for="Organisasi">Nama Organisasi</label>
                        	<div class="controls">
                        		<?php echo Form::input('nama_organisasi', '', array())?>
                        	</div>
                        </div>
                        <div class="control-group">
                        	<label class="control-label" for="Posisi">Jabatan Terakhir</label>
                        	<div class="controls">
                        		<?php echo Form::input('posisi', '', array())?>
                        	</div>
                        </div>
                        <div class="control-group">
                          	<label class="control-label" for="Lama">Periode</label>
							<div class="controls">
                          		<?php echo Form::input('lama', '', array())?>
                          	</div>
                          </div>

                    </fieldset>
                     <fieldset>
                         <div class="form-actions">
                             <input class="btn btn-primary" type="submit" name="submit" value="Save" />
                             <button class="btn btn-primary">Cancel</button>
                        </div>                   
                    </fieldset>
                  <?php echo Form::close()?>
          </div>
     </div>